<?php
// 提交修改信息
// header("content-type:text/html;charset=UTF-8");
include_once("conn.php");
include_once("d_getLoginInfo.php");

$docID = $_POST['docID'];
$docPhone = $_POST['docPhone'];

$update = "UPDATE doc_infos SET doc_Phone ='" . $docPhone . "' WHERE doc_ID ='" . $docID . "'";
if($result_update = mysqli_query($connect_DB,$update)){
    session_unset();
    session_destroy();
    echo "<script type='text/javascript'>alert('信息修改成功！请重新登录同步数据库！');location='doc_Login.html';</script>";
    $connect_DB->close();
    exit();
}else {
    echo "<script type='text/javascript'>alert('信息修改失败！请重试！');history.go(-1);</script>";
}

$connect_DB->close();
?>